home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
intrvews
/
tut-code.lha
/
tut-code
/
box1
/
main.c
< prev
Wrap
C/C++ Source or Header
|
1992-01-02
|
756b
|
30 lines
#include <InterViews/background.h>
#include <InterViews/box.h>
#include <InterViews/character.h>
#include <InterViews/session.h>
#include <InterViews/style.h>
#include <InterViews/window.h>
int main(int argc, char** argv) {
Session* session = new Session("Himom", argc, argv);
Style* style = session->style();
const Font* f = style->font();
const Color* fg = style->foreground();
session->run_window(
new ApplicationWindow(
new Background(
new LRBox(
new Character('g', f, fg),
new Character('o', f, fg),
new Character('o', f, fg),
new Character('d', f, fg),
new Character('b', f, fg),
new Character('y', f, fg),
new Character('e', f, fg)
),
style->background()
)
)
);
}